package com.lzy.system.organization.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzy.exception.BusException;
import com.lzy.system.organization.entity.SysLoginLog;

/**
 * <p>
 * 登录日志 服务类
 * </p>
 *
 * @author lcc
 * @since 2023-11-14
 */
public interface ISysLoginLogService extends IService<SysLoginLog> {
    /**
     * 新增登录日志
     * @return
     * @throws Exception
     */
    public boolean add(SysLoginLog sysLoginLog) throws BusException;

    /**
     * 查询登录日志列表
     * @param userId
     * @param userName
     * @param limit
     * @param page
     * @return
     * @throws Exception
     */
    public IPage<SysLoginLog> getList(String userId,String userName,int limit, int page) throws BusException;

}
